home *** CD-ROM | disk | FTP | other *** search
/ Amiga Games: 500 MB Amiga Software / 500 MB Amiga Software - Euber 130 - Amiga Games Disc & Mag.iso / userbox / publicdomain / tinymeter / source / tinymeter_main / include / libraries / screennotify.h next >
C/C++ Source or Header  |  1995-03-27  |  2KB  |  42 lines

  1. #ifndef LIBRARIES_SCREENNOTIFY_H
  2. #define LIBRARIES_SCREENNOTIFY_H
  3.  
  4. /*
  5.  * libraries/screennotify_protos.h
  6.  *
  7.  * Include file for screennotify.library
  8.  *
  9.  * $VER: screennotify.h 1.0 (26.03.95)
  10.  *
  11.  */
  12.  
  13. #ifndef EXEC_PORTS_H
  14. #include <exec/ports.h>
  15. #endif
  16.  
  17. /* Name and version */
  18. #define SCREENNOTIFY_NAME    "screennotify.library"
  19. #define SCREENNOTIFY_VERSION 1
  20.  
  21. /* Message sent to clients */
  22. struct ScreenNotifyMessage {
  23.  struct Message snm_Message;
  24.  ULONG          snm_Type;    /* READ ONLY!! */
  25.  APTR           snm_Value;   /* READ ONLY!! */
  26. };
  27.  
  28. /* Values for snm_Type */
  29. #define SCREENNOTIFY_TYPE_CLOSESCREEN   0 /* CloseScreen() called, snm_Value contains */
  30.                                           /* pointer to Screen structure              */
  31. #define SCREENNOTIFY_TYPE_PUBLICSCREEN  1 /* PubScreenStatus() called to make screen  */
  32.                                           /* public, snm_Value contains pointer to    */
  33.                                           /* PubScreenNode structure                  */
  34. #define SCREENNOTIFY_TYPE_PRIVATESCREEN 2 /* PubScreenStatus() called to make screen  */
  35.                                           /* private, snm_Value contains pointer to   */
  36.                                           /* PubScreenNode structure                  */
  37. #define SCREENNOTIFY_TYPE_WORKBENCH     3 /* snm_Value == FALSE (0): CloseWorkBench() */
  38.                                           /* called, please close windows on WB       */
  39.                                           /* snm_Value == TRUE  (1): OpenWorkBench()  */
  40.                                           /* called, windows can be opened again      */
  41. #endif
  42.